package com.zhangsun.springShiro.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhangsun.springShiro.system.entity.RoleEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 角色 Mapper 接口
 * </p>
 *
 * @author zhangsun
 * @since 2019-07-23
 */
public interface RoleMapper extends BaseMapper<RoleEntity> {
    
    List<RoleEntity> findRolesByUser(@Param("userId") String userId);

}
